package org.jeecg.modules.demo.yhs.Controller;

import org.jeecg.modules.demo.yhs.POJO.ConsumerMap;
import org.jeecg.modules.demo.yhs.Service.MapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/Y")
public class MapController {

  @Autowired
    private MapService mapService;

     @GetMapping(value = "/find",produces = "application/json; charset=utf-8" )
    public List<ConsumerMap> sel(){
         List<ConsumerMap> list =mapService.findAll();
         return list;
     }


}
